package com.bestcem.xm.deliver;

import com.bestcem.xm.common.core.annotation.EnableCustomConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;


@EnableCustomConfig
@SpringBootApplication
@ComponentScan(value = {
        "com.bestcem.xm.common.core",
        "com.bestcem.xm.component",
        "com.bestcem.xm.deliver"
}, excludeFilters = {
        @ComponentScan.Filter(type = FilterType.REGEX, pattern = "com.bestcem.xm.common.core.sign.*")
}
)
public class BestcemApplication {

    public static void main(String[] args) {
        SpringApplication.run(BestcemApplication.class, args);
    }

    //@Bean("xmDeliverCache")
    //public Cache<String,Object> xmDeliverCache(){
    //    return Caffeine.newBuilder()
    //            .initialCapacity(128)//初始大小
    //            .maximumSize(1024)//最大数量
    //            .expireAfterWrite(Long.MAX_VALUE, TimeUnit.DAYS)//等于永不过期
    //            .build();
    //}
}
